package com.gelpag.base.business.common;

import been.RoleInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class CommonService {

    @Resource
    private CommonMapper commonMapper;

    //通过用户id获取角色
    public List<RoleInfo> getUserRoleList(String user_id) {
        return commonMapper.getUserRoleList(user_id);
    }

    //根据用户id获取对应系统
    public List<Map<String, String>> getUserSys_codes(String user_id) {

        return commonMapper.getUserSys_codes(user_id);
    }
}
